package cn.hss.set;

import java.util.Objects;

/**学生的实体类
 * @author 作者：HeShaoShuai
 * @Email 邮箱：2569819541@qq.com
 * @Date 日期：2023/4/27 14:03
 * @Package 包名：cn.hss.set
 * @Project 项目名：JavaSE
 * @Version 1.0
 */
public class Student {
	private String name;
	private int age;

	public Student() {
	}
	public Student(String name, int age) {
		this.name = name;
		this.age = age;
	}

	@Override
	public String toString() {
		return "Student{" +
				"name='" + name + '\'' +
				", age=" + age +
				'}';
	}
	//	@Override
//	public boolean equals(Object o) {
//		if (this == o) return true;
//		if (o == null || getClass() != o.getClass()) return false;
//		Student student = (Student) o;
//		return age == student.age && Objects.equals(name, student.name);
//	}
//
//	@Override
//	public int hashCode() {
//		return Objects.hash(name, age);
//	}
}
